﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.DependencyInjection;

namespace DouCat.Blog.HttpApi
{
    public static class TestInterceptorRegistrar
    {
        public static void RegisterIfNeeded(IOnServiceRegistredContext context)

        {

            // 如果类型允许被审计日志拦截器所拦截，则在类型关联的拦截器上下文当中添加审计日志拦截器。
            if (context.ImplementationType.Name == "HelloWorldController")
                context.Interceptors.TryAdd<TestInterceptor>();

        }

    }
}
